package com.takeoutOrder.server.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.takeoutOrder.common.annotation.Excel;
import com.takeoutOrder.common.core.domain.BaseEntity;

/**
 * 申请权限对象 apply
 * 
 * @author linzechen
 * @date 2024-11-27
 */
public class Apply extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @Excel(name = "id")
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 通过时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "通过时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date passTime;

    /** 目标部门 */
    @Excel(name = "目标部门")
    private Long deptId;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    /** 备注 */
    @Excel(name = "备注")
    private String remake;

    /** 状态: 0 未受理 1通过 2拒绝 */
    @Excel(name = "状态: 0 未受理 1通过 2拒绝")
    private Long status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setPassTime(Date passTime) 
    {
        this.passTime = passTime;
    }

    public Date getPassTime() 
    {
        return passTime;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setRemake(String remake) 
    {
        this.remake = remake;
    }

    public String getRemake() 
    {
        return remake;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("createTime", getCreateTime())
            .append("passTime", getPassTime())
            .append("deptId", getDeptId())
            .append("phone", getPhone())
            .append("remake", getRemake())
            .append("status", getStatus())
            .toString();
    }
}
